<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!-- Sidebar Navigation-->
<nav id="sidebar">
    <!-- Sidebar Header-->
    <div class="sidebar-header d-flex align-items-center">

        <div id="avatar" class="avatar">
            <c:if test="${sessionScope.userBaseInfo.pic==null}">
                <img id="headPhoto" src="${pageContext.request.contextPath}/assets/img/avatar-6.jpg" alt="加载中..." class="img-fluid rounded-circle">
            </c:if>
            <c:if test="${sessionScope.userBaseInfo.pic!=null}">
                <img id="headPhoto" src="${sessionScope.userBaseInfo.pic}" alt="加载中..." class="img-fluid rounded-circle">
            </c:if>
        </div>
        <div class="title">
            <h1 class="h5">${sessionScope.userBaseInfo.real_name}</h1>
            <p>${sessionScope.userBaseInfo.dept_name}</p>
        </div>
    </div>
    <!-- Sidebar Navidation Menus--><span class="heading">Main</span>
    <ul class="list-unstyled" id="menuList">
        <li interface="home" class="active"><a href="${pageContext.request.contextPath}/assets/html/home.jsp"> <i class="icon-home"></i>主页 </a></li>
        <li interface="user"><a href="#userDropdown"  data-toggle="collapse"> <i class="icon-windows"></i>用户列表</a>
            <ul id="userDropdown" class="collapse list-unstyled ">
                <li interface="getUsers"><a href="${pageContext.request.contextPath}/user/getUsers">查看用户</a></li>
                <li interface="getFocusUsers"><a href="${pageContext.request.contextPath}/user/getFocusUsers">我关注的用户</a></li>
                <li interface="releaseArticle"><a href="${pageContext.request.contextPath}/user/getArticles">发布文章</a></li>
                <li interface="myCollects"><a href="${pageContext.request.contextPath}/user/articleCollect">我的收藏</a></li>
            </ul>
        </li>
        <!--<li><a href="login.html"> <i class="icon-logout"></i>Login page </a></li>-->

        <li interface="dept"><a href="#depDropdown"  data-toggle="collapse"> <i class="icon-windows2"></i>部门列表</a>
            <ul id="depDropdown" class="collapse list-unstyled ">
                <li interface="getDepts"><a href="${pageContext.request.contextPath}/dept/getDepts">全部部门</a></li>
                <li interface="getMeeting"><a href="${pageContext.request.contextPath}/assets/html/meeting.jsp">会议系统</a></li>
            </ul>
        </li>

    </ul>

</nav>
<!-- Sidebar Navigation end-->